package com.fosdata.dpm.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;
import java.io.Serializable;


/**
 * <p>
 * 档案类别表
 * </p>
 *
 * @author gyk
 * @since 2025-10-22
 */

@TableName("sys_filetype")
public class SysFiletype extends Model<SysFiletype> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ft_id", type = IdType.AUTO)
    private Integer ftId;

    /**
     * 档案编号
     */
    private String ftCode;

    /**
     * 档案名称
     */
    private String ftName;

    /**
     * 箱变设备编码;关联箱变设备编码
     */
    private String ftXbdev;

    /**
     * 状态;删除1，正常0
     */
    private Integer ftDelFlag;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.ftId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getFtId() {
        return ftId;
    }

    public void setFtId(Integer ftId) {
        this.ftId = ftId;
    }

    public String getFtCode() {
        return ftCode;
    }

    public void setFtCode(String ftCode) {
        this.ftCode = ftCode;
    }

    public String getFtName() {
        return ftName;
    }

    public void setFtName(String ftName) {
        this.ftName = ftName;
    }

    public String getFtXbdev() {
        return ftXbdev;
    }

    public void setFtXbdev(String ftXbdev) {
        this.ftXbdev = ftXbdev;
    }

    public Integer getFtDelFlag() {
        return ftDelFlag;
    }

    public void setFtDelFlag(Integer ftDelFlag) {
        this.ftDelFlag = ftDelFlag;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SysFiletype{" +
                "ftId=" + ftId +
                ", ftCode='" + ftCode + '\'' +
                ", ftName='" + ftName + '\'' +
                ", ftXbdev='" + ftXbdev + '\'' +
                ", ftDelFlag=" + ftDelFlag +
                ", createTime=" + createTime +
                '}';
    }
}
